home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 18 / Developer Source Volume 18 (I-MODE Publications, Inc.)(2000).iso / visua / jan98 / swanf103.gif < prev    next >
Graphics Interchange Format  |  1998-06-08  |  25KB  |  582x344  |  4-bit (4 colors)
Labels: text | screenshot | font | number | black and white | parallel
OCR: Method Description void addNotify Never call this method; the AWT package calls it to connect a Window object with its peer class, which forms the interface between objects and the operating system's native windows. void pack Usually called automatically, this method arranges components inside a window according to the current layou! strategy and their preferred sizes. vold show You must call this method to make a window visible. Call hide, inherited from Component but not redefined In the Window class, to make a window invisible void dispose This is supposed to destroy the window and any components that it contains, but it only hides the window and detaches it from its peer closs. It doesn't "dispose" of anything, but it might help conserve system resources. void fol ront Makes a window visible and, if necessary, brings it to the front of other windows, Note: I've had little success using this method; it may or may not work os documented. void toBack Moves a window behind all others. Note: I've had just as little success using this method; like vaid toFront, it may or may not work as documented. Toolkit getToolkit Returns the default toolkit in use for this object. Although this method's return value is an object of the Toolkit class, it is an object of a system-dependent class extended from Toolkit. This makes the returned object valuable for obtaining information about the system, such as its resolution and color values. String This rather unusual method returns a string that, if null, indicates the window is secure. If the gotWarningString window is insecure - meaning that a security manager object is in effect, and a method such as checkToplevelWindow has returned false for the Window object - then the warning string will be set to something like "Warning: Applet Window." This string will also be displayed inside the window. You may, however, call getWarningString to determine whether the window is insecure, in which case you might prevent the window from being shown in the first place. Figure 3: The public methods of the Windows class.